
ROOTFS ?= /home/lf/workspace/rootfs
PWD := $(shell pwd)

all:
	gcc -o x86_mouse.out mouse_sync.c -lusb-1.0
	arm-none-linux-gnueabihf-gcc -o arm_mouse.out mouse_sync.c -lusb-1.0
	gcc -o x86_mouse_async.out mouse_async.c -lusb-1.0
	arm-none-linux-gnueabihf-gcc -o arm_mouse_async.out mouse_async.c -lusb-1.0
	cp *.out $(ROOTFS)/root/
arm:
	arm-none-linux-gnueabihf-gcc -o arm_mouse.out mouse_sync.c -lusb-1.0
	arm-none-linux-gnueabihf-gcc -o arm_mouse_async.out mouse_async.c -lusb-1.0
	cp *.out $(ROOTFS)/root/
x86:
	gcc -o x86_mouse.out mouse_sync.c -lusb-1.0
	gcc -o x86_mouse_async.out mouse_async.c -lusb-1.0